{% load static %}
<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>首页</title>
    <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}">

    <script src="{% static 'js/jquery.js' %}"></script>
    <script src="{% static 'layui/layui.js' %}" charset="utf-8"></script>

</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">云借阅-图书管理系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="" class="layui-nav-img" alt="">
                    {{ userName }}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">Settings</a></dd>
                    <dd><a href="{% url 'Admins:logout' %}">Sign out</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">系统管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="{% url 'Users:getList' %}">用户管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">图书管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="{% url 'NewBooksRecd:getList' %}">新书推荐</a></dd>
                        <dd><a href="{% url 'BooksRecding:getList' %}">当前借阅</a></dd>
                        <dd><a href="{% url 'BooksBorrow:getList' %}">图书借阅</a></dd>
                        <dd><a href="">借阅记录</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            {% block table %}

            {% endblock %}
        </div>
        {#      <iframe frameborder="0" id="demoAdmin" style="width: 100%; height: 100%; border-radius: 2px;" src=""></iframe>#}
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        版权
    </div>
</div>

<script>
    {#$(document).ready(function () {#}
    {#    $("dd>a").click(function (e) {#}
    {#        e.preventDefault();//阻止默认操作#}
    {#        $('#demoAdmin').attr("src",$(this).attr("href"));#}
    {#    });#}
    {# });#}
</script>
</body>
</html>